from django.conf.urls import *

from comment.views import CommentListView, CommentDetailView, CommentUpdateView, CommentDeleteView, CommentQuestionView, \
    CommentAnswerView

urlpatterns = [
    url(r'^question/$', CommentQuestionView.as_view(), name='comment_question_create'),
    url(r'^answer/$', CommentAnswerView.as_view(), name='comment_answer_create'),
    url(r'^list/$', CommentListView.as_view(), name='comment_list'),
    url(r'^(?P<pk>\d+)/detail/$', CommentDetailView.as_view(), name='comment_detail'),
    url(r'^(?P<pk>\d+)/update/$', CommentUpdateView.as_view(), name='comment_update'),
    url(r'^(?P<pk>\d+)/delete/$', CommentDeleteView.as_view(), name='comment_delete'),
]
